#include <iostream>

using namespace std;
/*
	最近十笔交易的资金情况显示出来
*/
class Bank
{
public:
	//构造函数去创建账户名
	Bank(string newname)
	{
		contname=newname;
		moneynum=0.0;  //最初账户余额是0
	}
	void saveMoney(float newnum)
	{
		moneynum+=newnum;
	}
	void getMoney(float getnum)
	{
		moneynum-=getnum;
	}
	//显示余额
	void showMoney()
	{
		cout<<moneynum<<endl;
	}
private:
	string contname;
	float moneynum;
};

int main()
{
	//创建银行账户
	Bank bank("zhangsan");
	//存钱
	bank.saveMoney(888888888888888.58);
	
	bank.getMoney(10000.58);
	//显示余额
	bank.showMoney();
}